package com.itheima.date8;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class Demo04 {

    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalDate date = now.toLocalDate();
        LocalTime time = now.toLocalTime();
        System.out.println(now);
        System.out.println(date);
        System.out.println(time);


    }
}
